<script type="text/javascript" >
    stSocialMediaToolbox.sortColumn();
    stSocialMediaToolbox.shortAction();
    stSocialMediaToolboxCustom.switchButton('<?php echo $current_action?>');

    jQuery('a.pp_close').click(function() {
        stSocialMediaToolbox.loadPage('<?php echo $returnAction; ?>');
    });
</script>
<div class="w100p bgl" id="stcontainer">
    <div class="w100p bgr">
        <div class="inner_container">
            <div class="icon_re">
                <h2 class="red_color upcase">Add new user</h2>
            </div>
            <br clear="both" />
            <table class="widefat" cellspacing="0">
                <thead>
                    <tr>
                        <?php print_column_headers('stSocialMediaToolbox_st_social_user'); ?>
                    </tr>
                </thead>

                <tbody>
                <?php
                if (count($users) > 0) {
                    $tr_class = "";
                    foreach ($users as $user) {
                        if( empty($tr_class) || $tr_class == "class='bg_gray2'"){
                            $tr_class = "class='bg_gray1'";
                        }else{
                            $tr_class = "class='bg_gray2'";
                        }
                        if(!in_array($user->ID, $socialUsers) && $user->user_login != $config['userAdminName']){
                            echo "<tr id='$user->ID' $tr_class >"
                            . "<td>" . $user->user_login . "</td>"
                            . "<td>" . $user->user_email . "</td>"
                            ;
                            
                            echo "<td>"
                            . '<div userID="'.$user->ID.'" name="'.$user->ID.'" class="cb-disable switch_checkbox">'
                            . '</div>'
                            . "</td>"
                            ;
                            
                            echo "</tr>"
                            ;
                        }
                    }
                }
                ?>
                </tbody>
            </table>
        </div>
    </div>
</div>